package container

import (
	"github.com/gorilla/websocket"
	client2 "html3/internal/client"
)

type ServiceContainer struct {
	ClientId     string
	UserId       string
	GroupName    string
	Message      string
	GroupClients *client2.GroupClients // 管理用户组的客户端连接
	UserClient   *client2.UserClient   // 管理用户的客户端连接
	Clients      *client2.Clients      // 管理所有客户端连接
	Conn         *websocket.Conn
}

func NewServiceContainer() *ServiceContainer {
	return &ServiceContainer{
		GroupClients: client2.NewGroupClients(),
		UserClient:   client2.NewUserClient(),
		Clients:      client2.NewClients(),
	}
}
